<html>
<head><meta charset="utf-8"><title>llvm obfuscation · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20obfuscation.html">llvm obfuscation</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="212509766"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/llvm%20obfuscation/near/212509766" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gladys951 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20obfuscation.html#212509766">(Oct 07 2020 at 02:43)</a>:</h4>
<p>Hi, I am new to rust and llvm. Trying to build an application followed by obfuscation with my own <a href="http://obfuscator.so">obfuscator.so</a>, can anyone advise how to build using cargo and pass my <a href="http://obfuscator.so">obfuscator.so</a> via opt?</p>
<p>understand that I probably could use cargo rustc -- --emit=llvm-ir then follow up with opt etc then finally with clang, however, my application have quite a number of crate dependencies hence it is easier to build via cargo. Appreciate if anyone could advise. TIA</p>



<a name="212572343"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/llvm%20obfuscation/near/212572343" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20obfuscation.html#212572343">(Oct 07 2020 at 15:08)</a>:</h4>
<p>Is this an LLVM pass?</p>



<a name="212637512"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/llvm%20obfuscation/near/212637512" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gladys951 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20obfuscation.html#212637512">(Oct 08 2020 at 00:57)</a>:</h4>
<p>yes, my custom LLVM pass. Wondering how to pass my .so in cargo. Thanks</p>



<a name="213017421"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/llvm%20obfuscation/near/213017421" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gladys951 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20obfuscation.html#213017421">(Oct 12 2020 at 09:42)</a>:</h4>
<p>Appreciate any advise. Thanks!</p>



<a name="213017551"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/llvm%20obfuscation/near/213017551" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20obfuscation.html#213017551">(Oct 12 2020 at 09:43)</a>:</h4>
<p>As far as I know rustc doesn't support loading LLVM plugins.</p>



<a name="213052485"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/llvm%20obfuscation/near/213052485" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/llvm.20obfuscation.html#213052485">(Oct 12 2020 at 15:24)</a>:</h4>
<p>It would be great to figure that out though... Nick Clifton was looking at adding <code>annobin</code> support to LLVM as a plug-in pass, and we'd love to load that for rustc too</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>